<%@page import="com.crm.entity.User" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="<%= application.getContextPath()%>/css/css-crm.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%User used=(User)session.getAttribute("user");
int usedrole=used.getRole();
 if(request.getAttribute("submenu")=="admin"){ %>
<div class="sublinks-bg">
    <table width="978" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="13">&nbsp;</td>
        <td width="965">
        <div class="button-sub"><a href="<%= application.getContextPath()%>/company/open.do">Company</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/executives/show.do">Executives</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/client/open.do">Client</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/supplier/open.do">Suppliers</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/source/open.do">Source</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/currency/show.do">Currency Value</a></div>
       <div class="button-sub"><a href="<%= application.getContextPath()%>/users/show.do">Users</a></div>
       <%
       if(usedrole==1){
       %>
       <div class="button-sub"><a href="<%= application.getContextPath()%>/Register/show.do">Register A Business</a></div>
       <%
       }
       %>
        </td>
      </tr>
    </table>
  </div>
  <%}else if(request.getAttribute("submenu")=="enquiry"){ %>
<div class="sublinks-bg">
    <table width="978" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="13">&nbsp;</td>
        <td width="965">
        <div class="button-sub"><a href="<%= application.getContextPath()%>/newEnq/open.do">New Enquiry</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/enqSearch/open.do">Enquiry Search</a></div>
         <!--  <div class="button-sub"><a href="#">Import Enquiry</a></div> -->
        </td>
      </tr>
    </table>
  </div>
  <%}else  if(request.getAttribute("submenu")=="invoice"){ %>
<div class="sublinks-bg">
    <table width="978" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="13">&nbsp;</td>
        <td width="965"> <div class="button-sub"><a href="<%= application.getContextPath()%>/suppInvoice/show.do">Supplier Invoice</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/invoice/show.do">Invoice</a></div>
      <div class="button-sub"><a href="<%= application.getContextPath()%>/deliveryChallan/open.do">Delivery Challan</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/invoiceStatus/open.do">Invoice Status</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/invoice/printinvoice.do">Print Invoice</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/deliveryChallan/printdc.do">Print DC</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/suppInvoice/printsupcopy.do">Print SupplierCopy</a></div>
        </td>
      </tr>
    </table>
  </div>
  <%}else if(request.getAttribute("submenu")=="reports"){ %>
<div class="sublinks-bg">
    <table width="978" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="13">&nbsp;</td>
        <td width="965">
        <div class="button-sub"><a href="<%= application.getContextPath()%>/totalReports/show.do">Total Reports</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/pendingEnquiry/show.do">Pending Enquiries</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/pendingQuot/show.do">Pending Quotations</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/PendingOrd/show.do">Pending Orders</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/pendInvoice/open.do">Pending Invoices</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/execBusiness/show.do">Executive Business</a></div>
         <div class="button-sub"><a href="<%= application.getContextPath()%>/supplyOrder/getBankGuarntee.do">Bank Guarantee</a></div>
        <%-- <div class="button-sub"><a href="<%= application.getContextPath()%>/compBusiness/show.do">Company Business</a></div> --%>
        </td>
      </tr>
    </table>
  </div>
  <%}else if(request.getAttribute("submenu")=="quotation"){ %>
<div class="sublinks-bg">
    <table width="978" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="13">&nbsp;</td>
        <td width="965">
        <div class="button-sub"><a href="<%= application.getContextPath()%>/newquot/show.do">New Quotation</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/printquot/show.do">Print Quotation</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/pendingQuot/show.do">Close Quotation</a></div>
        
        </td>
      </tr>
    </table>
  </div>
  <%}else if(request.getAttribute("submenu")=="orders"){ %>
<div class="sublinks-bg">
    <table width="978" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="13">&nbsp;</td>
        <td width="965">
        <div class="button-sub"><a href="<%= application.getContextPath()%>/supplyOrder/show.do">Supply Order</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/purchaseOrder/show.do">Purchase Order</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/poConfirm/show.do">PO Confirmation</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/inventory/show.do">Inventory</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/supplyOrder/printpi.do">Print PI</a></div>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/purchaseOrder/printpo.do">Print PO</a></div>
        </td>
      </tr>
    </table>
  </div>
  <%}else if(request.getAttribute("submenu")=="sourcingInfo"){ %>
<div class="sublinks-bg">
    <table width="978" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="13">&nbsp;</td>
        <td width="965">
        <%
        if(usedrole==1||usedrole==2 ||usedrole==3){
        %>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/exportsource/open.do">Export To Source</a></div>
        <%
        }
        if(usedrole==1||usedrole==2 || usedrole==3 || usedrole==4){
        %>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/importsource/show.do">Import From Source</a></div>
        <%
        }
        if(usedrole==1 || usedrole==2 || usedrole==3){
        %>
        <div class="button-sub"><a href="<%= application.getContextPath()%>/comparesource/show.do">Compare Sources</a></div>
        <%
        }
        %>
        </td>
      </tr>
    </table>
  </div>
  <%} %>
  <!-- <div class="sublinks-bg" id="infoDiv" align="center">
  This Is Info Div
  </div> -->
</body>
</html>